﻿using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Caltech.Service.Common
{
    [JsonConverter(typeof(StringEnumConverter))]
    [Flags]
    public enum Roles
    {
        Technician = 1,
        IT = 2,
        Salesman = 4,
        Admin = 8,
        QC = 16,
        Customer = 32,
        Manager = 64
    }

    [JsonConverter(typeof(StringEnumConverter))]
    public enum Status
    {
        Tolerance = 1,
        Fail,
        Rejected,
        Limited,
        InTolerance,
        OutOfTolerance
    }

    [JsonConverter(typeof(StringEnumConverter))]
    public enum ServicePlace
    {
        Onsite = 1,
        KLLab,
        Vendor
    }

    [Flags]
    public enum Areas
    {
        Certificate = 1,
        CertificateView = 2,
        Standard = 4,
        Customer = 8,
        Equipment = 16,
        CustomerEquipment = 32,
        Quote = 64,
        PO = 128,
        WO = 256,
        User = 512,
        Config = 1024
    }
}